define([
        'jquery'
   
        ], function ($){
	
	var LoginView = function() {};
	     
	LoginView.prototype = {
			drawing : function() {		
		
				var $mainDiv = $('#main');
				var $loginFormDiv = $('<form id = "loginForm"></form>');
		
				$mainDiv.html("");
				$mainDiv.append($loginFormDiv[0]);
		
				$loginFormDiv.append("<label>아이디 &nbsp;</label>");  //폼, 라벨 추가
				$('<input>',{type : "text", id : "id"}).appendTo($loginFormDiv);
		
				$loginFormDiv.append("<br><label>비밀번호 &nbsp;</label>");
				$('<input>',{type : "password", id : "password"}).appendTo($loginFormDiv);
		
				this.$input1 = $('<input>',{type : "button", value : '로그인', class : "button"}).appendTo($loginFormDiv);  //버튼
				this.$input2 = $('<input>',{type : "button", value : '회원가입', class : "button"}).appendTo($loginFormDiv);
			},
			
			setLoginEvent : function(func) {
				
				this.$input1.on('click', func);
			},
			
			setJoinEvent : function(func) {
				
				this.$input2.on('click', func);
			}
	};
	
	
	
	
	
	return	LoginView;
	
});
